package cn.edu.ctbu.labtest.dao;

import cn.edu.ctbu.labtest.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 学生仓库接口
 */
public interface TeacherRepository extends JpaRepository<Teacher,Integer> {
    public List<Teacher> findByName(String name);

    public List<Teacher> findByNameAndPassword(String name,String password);
}

